<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		function shuzu (a) {
			var sum = 0;
			for (var i = 0;i<a.length;i++) {
				if (typeof a[i]==='number') {
					sum+= a[i];
				}
				 
			}
			return sum;
		}
		document.write(shuzu([1,2,3,4,'abc']))
	</script>
</body>
</html>